using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Objects;

namespace BAL
{
    public class BALDuyet
    {
        BALDuyet _dal;
        public BALDuyet()
        {
            _dal = new BALDuyet();
        }

        public static List<Duyet> GetByTrangThaiDuyet(int trangthaiDuyet)
        {
            DALDuyet _dal = new DALDuyet();
            return _dal.GetByTrangThaiDuyet(trangthaiDuyet);
        }

        public static Duyet GetById(int id)
        {
            DALDuyet _dal = new DALDuyet();
            return _dal.GeById(id);
        }

        public static Duyet GetByIdDangKy(int id)
        {
            DALDuyet _dal = new DALDuyet();
            return _dal.GeByIdDangKy(id);
        }

        public static int Update_Duyet(int id, int idDangKy, int idNguoiDung, DateTime NgayDuyet, String GhiChu, int TrangThaiDuyet ,int status, int SapXep)
        {
            DALDuyet _dal = new DALDuyet();
            return _dal.Update_Duyet(id, idDangKy,idNguoiDung,NgayDuyet,GhiChu, TrangThaiDuyet ,status,SapXep);
        }

        public static int Insert(Duyet Item)
        {
            DALDuyet _dal = new DALDuyet();
            return _dal.Insert(Item);
        }

    }

          
}
